import { createStore } from 'vuex'

const store = createStore({
  state: {
    deviceInfo: {},
    offOn: 1 // 开关状态 0 关闭 1 开启
  },
  mutations: {
    setDeviceInfo(state, deviceInfo) {
      state.deviceInfo = deviceInfo
    }
  },
  actions: {}
})

export default store
